use axum::{
    routing::{get, post, put, delete},
    Router,
};
use crate::{role::handler::*, Db};

pub fn role_routes() -> Router<Db> {
    Router::new()
        .route("/roles", get(list_roles).post(create_role))
        .route("/roles/:id", get(get_role).put(update_role).delete(delete_role))
}